package com.thomasmoerman.dci2.domain

import com.thomasmoerman.dci2.frw.Identified

abstract class Account(override val id: Long) extends Identified {
  
  def increaseBalance(amount: Double)
  
  def decreaseBalance(amount: Double)
  
  def updateLog(msg: String, amount: Double) = println("Account " + id + " " + msg + " " + amount)
  
}

trait HasBalance {
    
  def balance: Double
  
}